﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AngelSpellMaker
{
    public partial class UniWaveMenu : Form
    {
        public UniWaveMenu()
        {
            InitializeComponent();
        }
        
        /* Button Target */
        private void TargetButton_Click(object sender, EventArgs e)
        {
            if (InstantButton.Enabled == true)
            {
                TargetButton.Enabled = false;

            }
            else if (InstantButton.Enabled == false)
            {
                InstantButton.Enabled = true;
                TargetButton.Enabled = false;
            }
        }
        
        // Buton Instant //
        private void InstantButton_Click(object sender, EventArgs e)
        {
            if (TargetButton.Enabled == true)
            {
                InstantButton.Enabled = false;

            }
            else if (TargetButton.Enabled == false)
            {
                TargetButton.Enabled = true;
                InstantButton.Enabled = false;
            }
        }

        // Main Function in This Form
        private void RunASMButton_Click(object sender, EventArgs e)
        {
            if (SelectVersionStrip.Text == "860" && InstantButton.Enabled == true && TargetButton.Enabled == false)
            {
                UniWaveTarget860 targetform = new UniWaveTarget860();
                targetform.Show();
                this.Close();
            }
            else if (SelectVersionStrip.Text == "860" && InstantButton.Enabled == false && TargetButton.Enabled == true)
            {
                UniWaveInstant860 instantform = new UniWaveInstant860();
                instantform.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("Select a Valid Version or Correct Spell Type.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }                   
    }
}
